<template>
  <div>加入购物车成功</div>
  <!-- 这要跳转到购物车列表路由 -->
  <button @click="toList">去购物车列表</button>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const toList = () => {
  router.push('/list')
}
</script>

<script lang="ts">
export default {
  name: 'VSuccess'
}
</script>

<style lang="scss" scoped></style>
